import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 项目成员
 */
@Entity('project_member')
export class ProjectMemberEntity extends BaseEntity {
    @Index()
    @Column({ comment: '项目ID' })
    projectId: number;

    @Index()
    @Column({ comment: '用户ID' })
    userId: number;

    @Column({ comment: '角色类型', dict: ['普通成员', '管理员'], default: 1 })
    roleType: number;
} 